﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Shapes;
using Wpf_ClientLourd.BusinessObject;

namespace Wpf_ClientLourd
{
    /// <summary>
    /// Logique d'interaction pour MenuPrincipal.xaml
    /// </summary>
    public partial class MenuPrincipal : Window
    {
        User user;
        Parametres param;

        public MenuPrincipal(User user, Parametres param)
        {
            InitializeComponent();
            this.user = user;
            this.param = param;
            this.lbl_nom.Content = "Bonjour " + user.preUser.ToUpper() + " " + user.nomUser.ToUpper();
        }

        private void bt_AdmBP_Click(object sender, RoutedEventArgs e)
        {
            //Chargement de l'écran suivant & Kill ecran actuel
            MenuAdminBP menuAdmBP = new MenuAdminBP(user, param);
            menuAdmBP.Show();
            this.Close();
        }

        private void bt_quitter_Click(object sender, RoutedEventArgs e)
        {
            this.Close();
        }
    }
}
